﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ly3
{
    class Dog : Animal, IType1
    {
        public string name { get; set; }
        public Dog(string name, string eat) : base(eat)
        {
            this.name = name;
        }
        public void swim()
        {
            Console.WriteLine("{0}会游泳", this.name);
        }
  


    public override void Eat()
        {
            base.Eat();
            Console.WriteLine("{0}会{1}", this.name, this.eat);
        }

    }
}
